<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<style type="text/css">
th {
	text-align: left;
}
</style>

<!-- 调拨在途监控页面 -->

<form id="pagerForm" method="post"
	action="<%=basePath%>goods/allocate.do">
	<input type="hidden" name="pageNum" value="${requestScope.all.pageNum}" />
	<input type="hidden" name="numPerPage"
		value="${requestScope.all.numPerPage}" /> <input type="hidden"
		name="from_dept" value="${requestScope.all.from_dept}" /> <input
		type="hidden" name="to_dept" value="${requestScope.all.to_dept}" /> <input
		type="hidden" name="begin_time" value="${requestScope.all.begin_time}" />
	<input type="hidden" name="end_time"
		value="${requestScope.all.end_time}" />
</form>
<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);"
		action="<%=basePath%>goods/allocate.do" method="post">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>原部门：<input bringbackname="district.deptid" type="hidden" />
						<input class="required" bringbackname="district.deptname"
						name="from_dept" type="text" value="${requestScope.all.from_dept}"
						readonly />
					</td>
					<td><a class="btnLook" href="<%=basePath%>dept/showtree.do"
						lookupGroup="district">查找带回</a></td>
					<td>目标部门：<input bringbackname="district1.deptid" type="hidden" />
						<input class="required" bringbackname="district1.deptname"
						name="to_dept" type="text" value="${requestScope.all.to_dept}"
						readonly />
					</td>
					<td><a class="btnLook" href="<%=basePath%>dept/showtree.do"
						lookupGroup="district1">查找带回</a></td>
					<td>开始时间：<input type="text"
						value="${requestScope.all.begin_time}" name="begin_time"
						readonly="readonly" class="date" name="dateStart">
					</td>
					<td>结束时间：<input type="text"
						value="${requestScope.all.end_time}" name="end_time"
						readonly="readonly" class="date" name="dateStart">
					</td>
				</tr>
			</table>
			<div class="subBar">
				<ul>
					<li><div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">查询</button>
							</div>
						</div></li>
				</ul>
			</div>
		</div>
	</form>

	<div class="panelBar"></div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th></th>
				<th>商品类型</th>
				<th>调拨原仓库</th>
				<th>调拨目的仓库</th>
				<th>调拨数量</th>
				<th>调拨时间</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${requestScope.allocateList}" var="all"
				varStatus="sta">
				<tr>
					<td>${sta.index+1 }</td>
					<td>${all.goods_type}</td>
					<td>${all.from_dept}</td>
					<td>${all.to_dept}</td>
					<td>${all.allocate_sum}</td>
					<td>${all.allocate_time}</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<!-- 用来绘制分页的界面 -->

	<div class="panelBar">
		<div class="pages">
			<span>显示</span> <select class="combox" name="numPerPage"
				onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="10">10</option>
				<option value="20">20</option>
				<option value="50">50</option>
			</select> <span>条，共${requestScope.all.totalCount}条</span>
		</div>
		<div class="pagination" targetType="navTab"
			totalCount="${requestScope.all.totalCount}"
			numPerPage="${requestScope.all.numPerPage}" pageNumShown="5"
			currentPage="${requestScope.all.pageNum}"></div>
	</div>
</div>




